package com.forekonw.demotest1103wan02;

import com.forekonw.demo6.Emp;

public abstract class Employee {
    private String name;
    private int number;
    private String birthday;

    public abstract double earnings();

    public Employee(){

    }

    public Employee(String name,int number,String birthday){
        this.name = name;
        this.number = number;
        this.birthday = birthday;

    }

    @Override
    public String toString() {
        return name+"   "+number+"   "+birthday;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }


}
